filechooser: add the inline-toolbar style class to the bottom toolbar
authorCosimo Cecchi <cosimoc@gnome.org>
Thu, 17 Mar 2011 19:44:18 +0000 (15:44 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Thu, 17 Mar 2011 19:47:08 +0000 (15:47 -0400)
gtk/gtkfilechooserdefault.c

index 034c232f940040b621dd02880faaee927366990e..4c18819469a3a2ecf9ba7580fbee53a753223983 100644 (file)
@@ -3766,11 +3766,12 @@ shortcuts_pane_create (GtkFileChooserDefault *impl,
   toolbar = gtk_toolbar_new ();
   gtk_toolbar_set_icon_size (GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_MENU);
 
-  gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
-  gtk_widget_show (toolbar);
-
   context = gtk_widget_get_style_context (toolbar);
   gtk_style_context_set_junction_sides (context, GTK_JUNCTION_TOP);
+  gtk_style_context_add_class (context, GTK_STYLE_CLASS_INLINE_TOOLBAR);
+  
+  gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
+  gtk_widget_show (toolbar);
 
   /* Add bookmark button */
   icon = g_themed_icon_new_with_default_fallbacks ("list-add-symbolic");